package com.example.aigc_education.enums;


import lombok.Getter;

@Getter
public enum ReminderType {

    BAN("不提醒",0);

    private final String title;

    private final Integer value;

    ReminderType(String title, Integer value) {
        this.title = title;
        this.value = value;
    }

    public static ReminderType fromValue(Integer value) {
        for (ReminderType reminderType : ReminderType.values()) {
            if (reminderType.getValue().equals(value)) {
                return reminderType;
            }
        }
        throw new IllegalArgumentException("No enum constant with value " + value);
    }
}
